package com.cheng.example.exception;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class ClassCastExceptionDemo {

    public static void main(String[] args) {

        List list = new ArrayList();
        ArrayList arrayList = (ArrayList) list;
        LinkedList linkedList = (LinkedList) list;

    }
}
